function LL_amt=calc_line_losses(Demand, ResProd)

global alpha1LL alpha2LL

LL_amt=alpha1LL'+alpha2LL'.*(Demand- ResProd).*(Demand- ResProd);